<?php
//No direct access
defined('_JEXEC') or die('Restricted access');
?>
<div id="ownservices">
 <div id="mainmenuownservice"><?php echo MenuHelper::nav(); ?></div>
	<div id="mainownservice">
		<h3><?php echo JText::_('OWNSERVICE_BRANCH_DETAIL'); ?></h3><hr />
		<?php
			$row = $this->row;
		?>
	<form action="<?php echo JRoute::_('index.php?option=com_ownservice'); ?>" method="post" name="adminForm">
	<table class="admintable">

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_BRANCHNAME'); ?></td>

			<td><?php echo $row->name; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_BRANCH_CODE'); ?></td>

			<td><?php echo $row->code; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('ABN'); ?></td>

			<td><?php echo $row->abn; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_ADDRESS'); ?></td>

			<td><?php echo $row->address; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_CITY'); ?></td>

			<td><?php echo $row->city; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_STATE'); ?></td>

			<td><?php echo $row->state; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_POSTCODE'); ?></td>

			<td><?php echo $row->postcode; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_COUNTRY'); ?></td>

			<td><?php echo $row->country; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_PHONE'); ?></td>

			<td><?php echo $row->phone; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_EMAIL'); ?></td>

			<td><?php echo $row->email; ?></td>

		</tr>

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2" align="center">

			<input type="button" name="cancel" value="<?php echo JText::_('OWNSERVICE_BACK'); ?>" onClick="javascript:document.location.href='<?php echo JText::_('index.php?option=com_ownservice&view=branches'); ?>';" />

			<?php if($this->access->canEdit):?><input type="submit" name="edit" value="<?php echo JText::_('OWNSERVICE_EDIT'); ?>" /><?php endif; ?>

			</td>

		</tr>

	</table>

	<input type="hidden" name="id" value="<?php echo $row->id; ?>" />

	<input type="hidden" name="option" value="com_ownservice" />

	<input type="hidden" name="task" value="edit" />

	<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid'); ?>" />

	<input type="hidden" name="controller" value="branch" />

	<input type="hidden" name="view" value="branch" />

	<?php echo JHTML::_( 'form.token' ); ?>

	</form>

	</div>

</div>